import { BasicFetchResult } from '../model/baseModel';
import { defHttp } from '@/utils/http/axios';
const api = '/amsAssetChange';
/**
 * 查询资产变动记录分页
 * @author frank
 * @date 2023-09-04 13:35:28
 */
export const page = (params?: any) =>
  defHttp.get<BasicFetchResult<any>>({ url: api + '/page', params });
/**
 * 添加资产变动记录
 * @author frank
 * @date 2023-09-04 13:35:28
 */
export const add = (params?: any) =>
  defHttp.post({ url: api + '/add', params });
/**
 * 修改资产变动记录
 * @author frank
 * @date 2023-09-04 13:35:28
 */
export const edit = (params?: any) =>
  defHttp.post({ url: api + '/edit', params });

/**
 * 删除资产变动记录
 * @author frank
 * @date 2023-09-04 13:35:28
 */
export const del = (ids: string[]) =>
  defHttp.post({ url: api + '/delete', params: ids });

/**
 * 单条查询
 */
export const detail = (id?: any) =>
  defHttp.get<BasicFetchResult<any>>({ url: api + '/detail/' + id });
export const check = (params: Recordable[]) =>
  defHttp.post<BasicFetchResult<any>>({ url: api + '/check', params });
